package com.syt.hospital.service;

import com.syt.model.hospital.Department;
import com.syt.vo.hospital.DepartmentQueryVo;
import com.syt.vo.hospital.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author: xxx
 * @Date: 2023/2/12 17:27
 * @Description:
 */
public interface DepartmentService {

    /**
     * 获取科室
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartment(String hoscode, String depcode);


    /**
     * 设置科室名称
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDepName(String hoscode, String depcode);

    /**
     * 查询医院所有科室列表
     * @param hoscode
     * @return
     */
    List<DepartmentVo> getDepartmentList(String hoscode);

    /**
     * 删除科室接口
     * @param hoscode
     * @param depcode
     */
    void remove(String hoscode, String depcode);

    /**
     * 查询数据并分页
     * @param page
     * @param limit
     * @param departmentQueryVo
     * @return
     */
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 调用service，保存科室表中 上传科室接口
     * @param paramMap
     */
    void saveDepartment(Map<String, Object> paramMap);


}
